package com.gx.components
{
	import com.gx.core.Component;
	import com.gx.data.IXMLDecoder;
	import com.gx.interfaces.ILayer;
	
	import flash.display.Bitmap;

	public class BitmapLayer extends Component implements ILayer, IXMLDecoder
	{
		public var bitmap:Bitmap;
		
		public function BitmapLayer()
		{
			bitmap = new Bitmap();
			super();
		}
		
		public function decode(xml:XML):void
		{
			/*
				<comp:BitmapLayer id="surfaces" />
			*/
			this.id = xml.@id;
		}
		
		private var _priority:int=0;
		public function get priority():int { return _priority; }
		public function set priority(value:int):void{_priority = value;}
		
	}
}